/*
 * This class creates the program to test the banking classes.
 * It creates a new Bank, sets the Customer (with an initial balance),
 * and performs a series of transactions with the Account object.
 * 此类创建程序来测试 banking 类。
 * 它创建一个新的 Bank，
 * 设置 Customer（具有初始余额），
 * 并使用 Account 对象执行一系列交易。
 */
// 引入Account类
import banking.Account;
public class TestBanking01 {

  public static void main(String[] args) {


    // Create an account that can has a 500.00 balance.
    // 创建一个余额为 500.00 的账户。
    System.out.println("Creating an account with a 500.00 balance.");
    Account account = new Account(500.00);
	//code
    // 提款 150.00
    System.out.println("Withdraw 150.00");
    account.withdraw(150.00);
   	//code

    // 存款 22.50
    System.out.println("Deposit 22.50");
    account.deposit(22.50);
	//code
    // 提款 47.62
    System.out.println("Withdraw 47.62");
    account.withdraw(47.62);
   	//code
    // Print out the final account balance
    // 打印出最终账户余额
    // 该账户的余额为
    System.out.println("The account has a balance of " + account.getBalance());
  }
}
